package com.kunlong.demo.domain;

import java.io.Serializable;
import javax.validation.constraints.*;
import org.mybatis.hbatis.core.type.JdbcType;
import org.mybatis.hbatis.core.annotation.*;
import org.mybatis.hbatis.core.*;
import java.lang.Integer;
import java.lang.String;
import org.mybatis.hbatis.orm.criteria.support.query.AbstractQueryParam;
import org.mybatis.hbatis.orm.criteria.support.query.SortOrders;
/**
 * ShopModel 
 * @author generator
 * @date 2022年04月24日
 */
@Table(ShopModel.EntityNode.class)
public class ShopModel implements Serializable {
	
	private static final long serialVersionUID = 1L;
	/**
	  * 商户标识
	  * nullable:true,length:255
	  */
	@Column(primaryKey = true,autoIncrement = true,comment = "商户标识")	
	private Integer shopId;
	/**
	  * 商户名称
	  * nullable:true,length:255
	  */
	@Column(comment = "商户名称")	
	private String shopName;
	/**
	  * 联系人
	  * nullable:true,length:255
	  */
	@Column(comment = "联系人")	
	private String contact;
    public Integer getShopId(){
    	return this.shopId;
    }
    public void setShopId(Integer shopId){
    	this.shopId = shopId;
    }
    public String getShopName(){
    	return this.shopName;
    }
    public void setShopName(String shopName){
    	this.shopName = shopName;
    }
    public String getContact(){
    	return this.contact;
    }
    public void setContact(String contact){
    	this.contact = contact;
    }

    public static class EntityNode extends AbstractEntityNode<ShopModel> {
        public static final EntityNode INSTANCE = new EntityNode("s");;
    	/** 商户标识 */
        public FieldNode<ShopModel, Integer> shopId =  createFieldNode("shopId","shop_id",Integer.class,JdbcType.INTEGER);
    	/** 商户名称 */
        public FieldNode<ShopModel, String> shopName =  createFieldNode("shopName","shop_name",String.class,JdbcType.VARCHAR);
    	/** 联系人 */
        public FieldNode<ShopModel, String> contact =  createFieldNode("contact","contact",String.class,JdbcType.VARCHAR);
	
        /**
         * @param alias 别名
         */
        public EntityNode(String alias) {
            super(ShopModel.class,"shop",alias);
        }
    }
    
    //-- 实体参数(允许新增属性) 
	public static class QueryParam extends AbstractQueryParam<ShopModel> {
		public QueryParam() {
			this.setSortOrders(new SortOrders<ShopModel>(EntityNode.INSTANCE));
		}
	}
	
	public static enum ValueField {
	}
    // ==== 自定义属性 ====
}